import request from '@/utils/request'

// 查询视频标签多对多列表
export function listVideotag(query) {
  return request({
    url: '/videotag/videotag/list',
    method: 'get',
    params: query
  })
}

// 查询视频标签多对多详细
export function getVideotag(videoId) {
  return request({
    url: '/videotag/videotag/' + videoId,
    method: 'get'
  })
}

// 新增视频标签多对多
export function addVideotag(data) {
  return request({
    url: '/videotag/videotag',
    method: 'post',
    data: data
  })
}

// 修改视频标签多对多
export function updateVideotag(data) {
  return request({
    url: '/videotag/videotag',
    method: 'put',
    data: data
  })
}

// 删除视频标签多对多
export function delVideotag(videoId) {
  return request({
    url: '/videotag/videotag/' + videoId,
    method: 'delete'
  })
}
